package com.lct.simpleforecast.bean

/**
 * Author：SkySmile
 * Date：2018/7/11
 * Description：从服务器获取的城市数据格式
 */

data class CityBean(
        val HeWeather6: List<HeWeather>
) {
    fun cityList() = HeWeather6[0].basic
    fun status() = HeWeather6[0].status

    data class HeWeather(
            val basic: List<Basic>,
            val status: String
    ) {
        data class Basic(
                val cid: String,
                val location: String,
                val parent_city: String,
                val admin_area: String,
                val cnty: String,
                val lat: String,
                val lon: String,
                val tz: String,
                val type: String
        )
    }
}